<?php

namespace App\Http\Requests\Goods;

use App\Http\Requests\BasicFormRequests;

class CartItemsRequest  extends BasicFormRequests
{
    protected $rule =[
        'goods_id' => 'required',
        'quantity' => 'required',
    ];

    public function __construct(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null)
    {
        $this->message = [
            'goods_id.required'=> trans('message.request_required',[
                'name' => trans('key.goods')
            ]),
            'quantity.required'=> trans('message.request_required',[
                'name' => trans('key.quantity')
            ]),
        ];
        parent::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
    }


    protected $scene = [
    ];

}
